package com.zretc.entity;

public class PhoneFactory {

	public static Phone createPhone(String type) {
		if ("iphone".equals(type)) {
			return new Iphone();
		} else if ("huawei".equals(type)) {
			return new HuaweiPhone();
		}
		return null;
	}

}
